package cn.com.lsy.product.lepao.model.entities;

import java.util.ArrayList;
import java.util.List;

public class LpStaminaScoreConfigTblExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public LpStaminaScoreConfigTblExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andLvIsNull() {
            addCriterion("lv is null");
            return (Criteria) this;
        }

        public Criteria andLvIsNotNull() {
            addCriterion("lv is not null");
            return (Criteria) this;
        }

        public Criteria andLvEqualTo(Integer value) {
            addCriterion("lv =", value, "lv");
            return (Criteria) this;
        }

        public Criteria andLvNotEqualTo(Integer value) {
            addCriterion("lv <>", value, "lv");
            return (Criteria) this;
        }

        public Criteria andLvGreaterThan(Integer value) {
            addCriterion("lv >", value, "lv");
            return (Criteria) this;
        }

        public Criteria andLvGreaterThanOrEqualTo(Integer value) {
            addCriterion("lv >=", value, "lv");
            return (Criteria) this;
        }

        public Criteria andLvLessThan(Integer value) {
            addCriterion("lv <", value, "lv");
            return (Criteria) this;
        }

        public Criteria andLvLessThanOrEqualTo(Integer value) {
            addCriterion("lv <=", value, "lv");
            return (Criteria) this;
        }

        public Criteria andLvIn(List<Integer> values) {
            addCriterion("lv in", values, "lv");
            return (Criteria) this;
        }

        public Criteria andLvNotIn(List<Integer> values) {
            addCriterion("lv not in", values, "lv");
            return (Criteria) this;
        }

        public Criteria andLvBetween(Integer value1, Integer value2) {
            addCriterion("lv between", value1, value2, "lv");
            return (Criteria) this;
        }

        public Criteria andLvNotBetween(Integer value1, Integer value2) {
            addCriterion("lv not between", value1, value2, "lv");
            return (Criteria) this;
        }

        public Criteria andCompleteMinIsNull() {
            addCriterion("complete_min is null");
            return (Criteria) this;
        }

        public Criteria andCompleteMinIsNotNull() {
            addCriterion("complete_min is not null");
            return (Criteria) this;
        }

        public Criteria andCompleteMinEqualTo(Integer value) {
            addCriterion("complete_min =", value, "completeMin");
            return (Criteria) this;
        }

        public Criteria andCompleteMinNotEqualTo(Integer value) {
            addCriterion("complete_min <>", value, "completeMin");
            return (Criteria) this;
        }

        public Criteria andCompleteMinGreaterThan(Integer value) {
            addCriterion("complete_min >", value, "completeMin");
            return (Criteria) this;
        }

        public Criteria andCompleteMinGreaterThanOrEqualTo(Integer value) {
            addCriterion("complete_min >=", value, "completeMin");
            return (Criteria) this;
        }

        public Criteria andCompleteMinLessThan(Integer value) {
            addCriterion("complete_min <", value, "completeMin");
            return (Criteria) this;
        }

        public Criteria andCompleteMinLessThanOrEqualTo(Integer value) {
            addCriterion("complete_min <=", value, "completeMin");
            return (Criteria) this;
        }

        public Criteria andCompleteMinIn(List<Integer> values) {
            addCriterion("complete_min in", values, "completeMin");
            return (Criteria) this;
        }

        public Criteria andCompleteMinNotIn(List<Integer> values) {
            addCriterion("complete_min not in", values, "completeMin");
            return (Criteria) this;
        }

        public Criteria andCompleteMinBetween(Integer value1, Integer value2) {
            addCriterion("complete_min between", value1, value2, "completeMin");
            return (Criteria) this;
        }

        public Criteria andCompleteMinNotBetween(Integer value1, Integer value2) {
            addCriterion("complete_min not between", value1, value2, "completeMin");
            return (Criteria) this;
        }

        public Criteria andCompleteMaxIsNull() {
            addCriterion("complete_max is null");
            return (Criteria) this;
        }

        public Criteria andCompleteMaxIsNotNull() {
            addCriterion("complete_max is not null");
            return (Criteria) this;
        }

        public Criteria andCompleteMaxEqualTo(Integer value) {
            addCriterion("complete_max =", value, "completeMax");
            return (Criteria) this;
        }

        public Criteria andCompleteMaxNotEqualTo(Integer value) {
            addCriterion("complete_max <>", value, "completeMax");
            return (Criteria) this;
        }

        public Criteria andCompleteMaxGreaterThan(Integer value) {
            addCriterion("complete_max >", value, "completeMax");
            return (Criteria) this;
        }

        public Criteria andCompleteMaxGreaterThanOrEqualTo(Integer value) {
            addCriterion("complete_max >=", value, "completeMax");
            return (Criteria) this;
        }

        public Criteria andCompleteMaxLessThan(Integer value) {
            addCriterion("complete_max <", value, "completeMax");
            return (Criteria) this;
        }

        public Criteria andCompleteMaxLessThanOrEqualTo(Integer value) {
            addCriterion("complete_max <=", value, "completeMax");
            return (Criteria) this;
        }

        public Criteria andCompleteMaxIn(List<Integer> values) {
            addCriterion("complete_max in", values, "completeMax");
            return (Criteria) this;
        }

        public Criteria andCompleteMaxNotIn(List<Integer> values) {
            addCriterion("complete_max not in", values, "completeMax");
            return (Criteria) this;
        }

        public Criteria andCompleteMaxBetween(Integer value1, Integer value2) {
            addCriterion("complete_max between", value1, value2, "completeMax");
            return (Criteria) this;
        }

        public Criteria andCompleteMaxNotBetween(Integer value1, Integer value2) {
            addCriterion("complete_max not between", value1, value2, "completeMax");
            return (Criteria) this;
        }

        public Criteria andScoreMinIsNull() {
            addCriterion("score_min is null");
            return (Criteria) this;
        }

        public Criteria andScoreMinIsNotNull() {
            addCriterion("score_min is not null");
            return (Criteria) this;
        }

        public Criteria andScoreMinEqualTo(Integer value) {
            addCriterion("score_min =", value, "scoreMin");
            return (Criteria) this;
        }

        public Criteria andScoreMinNotEqualTo(Integer value) {
            addCriterion("score_min <>", value, "scoreMin");
            return (Criteria) this;
        }

        public Criteria andScoreMinGreaterThan(Integer value) {
            addCriterion("score_min >", value, "scoreMin");
            return (Criteria) this;
        }

        public Criteria andScoreMinGreaterThanOrEqualTo(Integer value) {
            addCriterion("score_min >=", value, "scoreMin");
            return (Criteria) this;
        }

        public Criteria andScoreMinLessThan(Integer value) {
            addCriterion("score_min <", value, "scoreMin");
            return (Criteria) this;
        }

        public Criteria andScoreMinLessThanOrEqualTo(Integer value) {
            addCriterion("score_min <=", value, "scoreMin");
            return (Criteria) this;
        }

        public Criteria andScoreMinIn(List<Integer> values) {
            addCriterion("score_min in", values, "scoreMin");
            return (Criteria) this;
        }

        public Criteria andScoreMinNotIn(List<Integer> values) {
            addCriterion("score_min not in", values, "scoreMin");
            return (Criteria) this;
        }

        public Criteria andScoreMinBetween(Integer value1, Integer value2) {
            addCriterion("score_min between", value1, value2, "scoreMin");
            return (Criteria) this;
        }

        public Criteria andScoreMinNotBetween(Integer value1, Integer value2) {
            addCriterion("score_min not between", value1, value2, "scoreMin");
            return (Criteria) this;
        }

        public Criteria andScoreMaxIsNull() {
            addCriterion("score_max is null");
            return (Criteria) this;
        }

        public Criteria andScoreMaxIsNotNull() {
            addCriterion("score_max is not null");
            return (Criteria) this;
        }

        public Criteria andScoreMaxEqualTo(Integer value) {
            addCriterion("score_max =", value, "scoreMax");
            return (Criteria) this;
        }

        public Criteria andScoreMaxNotEqualTo(Integer value) {
            addCriterion("score_max <>", value, "scoreMax");
            return (Criteria) this;
        }

        public Criteria andScoreMaxGreaterThan(Integer value) {
            addCriterion("score_max >", value, "scoreMax");
            return (Criteria) this;
        }

        public Criteria andScoreMaxGreaterThanOrEqualTo(Integer value) {
            addCriterion("score_max >=", value, "scoreMax");
            return (Criteria) this;
        }

        public Criteria andScoreMaxLessThan(Integer value) {
            addCriterion("score_max <", value, "scoreMax");
            return (Criteria) this;
        }

        public Criteria andScoreMaxLessThanOrEqualTo(Integer value) {
            addCriterion("score_max <=", value, "scoreMax");
            return (Criteria) this;
        }

        public Criteria andScoreMaxIn(List<Integer> values) {
            addCriterion("score_max in", values, "scoreMax");
            return (Criteria) this;
        }

        public Criteria andScoreMaxNotIn(List<Integer> values) {
            addCriterion("score_max not in", values, "scoreMax");
            return (Criteria) this;
        }

        public Criteria andScoreMaxBetween(Integer value1, Integer value2) {
            addCriterion("score_max between", value1, value2, "scoreMax");
            return (Criteria) this;
        }

        public Criteria andScoreMaxNotBetween(Integer value1, Integer value2) {
            addCriterion("score_max not between", value1, value2, "scoreMax");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}